package com.gxa.accommodation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gxa.accommodation.entity.AccommodationRoomType;
import com.gxa.accommodation.vo.AccommodationRoomTypeVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface AccommodationRoomTypeMapper extends BaseMapper<AccommodationRoomType> {
    void updateCountById(@Param("id") Long id);

    Page<AccommodationRoomTypeVO> selectByPage(@Param("page") Page<AccommodationRoomTypeVO> page);


    void updateRoomStatusById(@Param("id") Long id,@Param("roomStatus") Byte roomStatus);

    Integer countRoomTypeByRoomTypeId(@Param("roomTypeId") Long roomTypeId);
}
